//
//  ViewController.m
//  住房条件帅选器
//
//  Created by MB__Lee on 2018/5/15.
//  Copyright © 2018年 MB__Lee. All rights reserved.
//

#import "ViewController.h"

#import "MBMutiSearchBar.h"
#import "MSButton.h"

#define MBScreen_width [UIScreen mainScreen].bounds.size.width
#define MBScreen_height  [UIScreen mainScreen].bounds.size.height

@interface ViewController ()

@property(nonatomic,strong)MBMutiSearchBar *mbSearchBar;



@end

@implementation ViewController

-(MBMutiSearchBar *)mbSearchBar{
    if (!_mbSearchBar) {
        
        _mbSearchBar = [[MBMutiSearchBar alloc] initWithFrame:CGRectMake(0, MBScale(20),MBScreen_width , MBScale(50))];
        
        _mbSearchBar.backgroundColor = [UIColor whiteColor];
        
        
    }
    return  _mbSearchBar;
}

- (void)viewDidLoad {
    [super viewDidLoad];
//    [self.view addSubview:self.mbSearchBar];
    // Do any additional setup after loading the view, typically from a nib.
//    MSButton *button = [MSButton buttonWithType:UIButtonTypeCustom];
//    button.frame = CGRectMake(100, 200, 200, 100);
//    button.backgroundColor = [UIColor blueColor];
//    [button setImage:[UIImage imageNamed:@"test"] forState:UIControlStateNormal];
//    [button setTitle:@"1000" forState:UIControlStateNormal];
//    [self.view addSubview:button];
//    [button addTarget:self action:@selector(clik:) forControlEvents:UIControlEventTouchUpInside];
    
    [self.view addSubview:self.mbSearchBar];
    
}
-(void)clik:(UIButton *)btn{
    btn.selected = !btn.selected;
}



- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
